<?php
use \think\Request;

$basename = Request::instance()->root();
if (pathinfo($basename, PATHINFO_EXTENSION) == 'php') {
    $basename = dirname($basename);
}

//配置文件
return [
	// 模板参数替换
	'view_replace_str' => [
	    '__ROOT__'           => $basename,
	    '__PUBLIC__'         => $basename . '/static',
	    '__STATIC__'         => $basename . '/static/admin',
	    '__LIB__'            => $basename . '/static/admin/lib',
	    '__AJS__'            => $basename . '/static/admin/js',
	    '__REQUIRE__JS__'    => $basename . '/static/common/js/require',
	],

];